<template>
    <div>
        请输入新密码：<input type="text" v-model="password">
        <Button color="green" @click="onSubmit">确认更改</Button>
    </div>
</template>

<script>
import { altem_post } from './axios_api/api';
  export default {
    data() {
      return {
          password:"",
      }
    },
    mounted(){

    },
    methods: {
      onSubmit() {
            var id = this.$route.query.id;
            var data = {id:id,password:this.password}
            altem_post(data).then(resp=>{
                this.$Message(resp.message)
            })
      }
    }
  }
</script>
